<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <h3>多个复选框的使用</h3>
        <input id="jack" type="checkbox" value="jack" v-model="checkedNames"/>
        <label for="jack">Jack</label>
        <input id="john" type="checkbox" value="john" v-model="checkedNames"/>
        <label for="john">John</label>
        <input id="mike" type="checkbox" value="mike" v-model="checkedNames"/>
        <label for="jack">Mike</label>
        <p>{{checkedNames}}</p>
    </div>
    <script>
        const vm=new Vue({
            el:'#app',
            data:{
                checkedNames:[]
            }
        })
    </script>
</body>
</html>